using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JNPF.Basics.Models
{
	/// <summary>
	/// 企业财务信息
	/// </summary>
	[Table("JIUSHI_CUSTOMERFINANCIAL")]
	public class CustomerfinancialEntity
	{
		/// <summary>
		/// 主键ID
		/// </summary>
		[Key]
		[Column("F_ID")]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		public int Id {get;set;}

		/// <summary>
		/// 客户主键
		/// </summary>
		[Column("F_CUSTOMERID")]
		public int CustomerId {get;set;}

        /// <summary>
        /// 业务ID
        /// </summary>
        [Column("F_BUSINESSID")]
        [MaxLength(255)]
        public string BusinessId { get; set; }


        /// <summary>
        /// 固定资产原值
        /// </summary>
        [Column("F_ORIGINALASSETS")]
        public decimal? OriginalAssets { get; set; }

        /// <summary>
        /// 固定资产净值
        /// </summary>
        [Column("F_NETASSETS")]
        public decimal? NetAssets { get; set; }

        /// <summary>
        /// 附件信息
        /// </summary>
        [Column("F_ATTACHMENT")]
        [MaxLength(65535)]
        public string Attachment { get; set; }



        /// <summary>
        /// 月份
        /// </summary>
        [Column("F_MONTH")]
		[MaxLength(255)]
		public string Month {get;set;}

		/// <summary>
		/// 总资产
		/// </summary>
		[Column("F_TOTALASSETS")]
		public decimal? TotalAssets {get;set;}

		/// <summary>
		/// 总负债
		/// </summary>
		[Column("F_TOTALLIABILITIES")]
		public decimal? TotalLiabilities {get;set;}

		/// <summary>
		/// 所有者权益
		/// </summary>
		[Column("F_OWNEREQUITY")]
		public decimal? OwnerEquity {get;set;}

		/// <summary>
		/// 资产负债率
		/// </summary>
		[Column("F_ASSETLIABILITYRATIO")]
		public decimal? AssetLiabilityRatio {get;set;}

		/// <summary>
		/// 销售收入
		/// </summary>
		[Column("F_SALESREVENUE")]
		public decimal? SalesRevenue {get;set;}

		/// <summary>
		/// 净利润
		/// </summary>
		[Column("F_NETPROFIT")]
		public decimal? NetProfit {get;set;}

		/// <summary>
		/// 净利润率
		/// </summary>
		[Column("F_NETPROFITMARGIN")]
		public decimal? NetProfitMargin {get;set;}

		/// <summary>
		/// 排序
		/// </summary>
		[Column("F_SORTCODE")]
		public int? SortCode {get;set;}

		/// <summary>
		/// 有效标志
		/// </summary>
		[Column("F_ENABLEDMARK")]
		public int? EnabledMark {get;set;}

		/// <summary>
		/// 创建时间
		/// </summary>
		[Column("F_CREATORTIME")]
		public DateTime? CreatorTime {get;set;}

		/// <summary>
		/// 创建用户
		/// </summary>
		[Column("F_CREATORUSERID")]
		[MaxLength(50)]
		public string CreatorUserId {get;set;}


        /// <summary>
        /// 创建用户
        /// </summary>
        [Column("F_CREATORUSER")]
        [MaxLength(50)]
        public string CreatorUser { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("F_LASTMODIFYTIME")]
		public DateTime? LastModifyTime {get;set;}

		/// <summary>
		/// 修改用户
		/// </summary>
		[Column("F_LASTMODIFYUSERID")]
		[MaxLength(50)]
		public string LastModifyUserId {get;set;}

		/// <summary>
		/// 删除标志
		/// </summary>
		[Column("F_DELETEMARK")]
		public int? DeleteMark {get;set;}

		/// <summary>
		/// 删除时间
		/// </summary>
		[Column("F_DELETETIME")]
		public DateTime? DeleteTime {get;set;}

		/// <summary>
		/// 删除用户
		/// </summary>
		[Column("F_DELETEUSERID")]
		[MaxLength(50)]
		public string DeleteUserId {get;set;}


	}
}
